'use strict';
const db = uniCloud.database()
exports.main = async (event, context) => {
	const dbCmd = db.command
	const collection = db.collection('support')
	let res = await collection.where({_id: event.id}).update({
	  state: 1
	})
	
	//返回数据给客户端
	return res
};
